package com.lin.generator;

import com.lin.generator.config.GeneratorConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 猴哥
 */
@Configuration
@EnableConfigurationProperties(GeneratorConfig.class)
public class GeneratorAutoConfiguration {
	/**
	 * 生成器
	 *
	 * @param generatorConfig 生成器配置
	 * @return 生成器
	 */
	@Bean
	public GeneratorUtil generatorUtil(GeneratorConfig generatorConfig) {
		return new GeneratorUtil(generatorConfig);
	}
}
